package com.example.demo.service.impl;

import com.example.demo.dao.TestDao;
import com.example.demo.domain.Test;
import com.example.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("TestService")
public class TestServiceImpl implements TestService {

    @Resource
    private TestDao testDao;

    @Override
    public Test getTest() {
        return testDao.selectTest(1l);
    }
}
